﻿using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using pandx.Mulan.Dictionaries.Dto;
using pandx.Mulan.Dto;

namespace pandx.Mulan.Dictionaries
{
    public interface IDictionaryAppService
    {
        Task<PagedResultDto<DictionaryListDto>> ObtainDictionaries(ObtainDictionariesInput input);
        Task CreateOrUpdateDictionary(CreateOrUpdateDictionaryInput input);
        Task<GetDictionaryForEditOutput> GetDictionaryForEdit(NullableIdDto<long> input);
        Task<DictionaryListDto> GetDictionary(EntityDto<long> input);
        Task DeleteDictionary(EntityDto<long> input);
        Task<FileDto> ObtainDictionariesToExcel(ObtainDictionariesInput input);
        Task<ListResultDto<DictionaryListDto>> GetDictionariesByCategoryCode(GetDictionariesByCategoryCodeInput input);
    }
}
